<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">

  </div>
  <button id="btn">摸我</button>
  <script src="../packages/reactivity/dist/reactivity.global.js"></script>
  <script>
    let  { ref,shallowRef,effect }  = VueReactivtiy;
    let state =  ref(0);
    effect(()=>{
      app.innerHTML = state.value;
    })
    btn.onclick = function(){
      state.value++;
    }
  </script>
</body>
</html>